(function(){Nokia.TextLink=Nokia.Widget.extend({initialize:function(b){var a=this;var c={url:false,label:""};a.options=jQuery.extend(c,b);a.element=jQuery(a.options.element);a._super.apply(a,[a.options]);a.registerData("link");a._attachEvents();a._create();a.registerVibrationOn([]);a.fireCallback("create")},go:function(c){var a=this;var b=a.options;var d=a.element;var c=c||b.url;var e=a.Styles;Nokia.util.addClass(d[0],e.linkVisited);a.openURL(c)},_attachEvents:function(){var a=this;var c=a.options;var b=c.url;var d=a.element;var e=function(f){if(c.url){a.go()}a.fireCallback("click",[f,b]);return false};d.bind("click.textlink",e);Nokia.util.bindEnter(d,e)},_create:function(){var a=this;var e=a.element;var d=a.options;var c=d.label;var b=d.url;var f=a.Styles;if(c){e.html(c)}Nokia.util.addClass(e[0],f.link);e.attr("href","javascript:void(0);");if(d.style){a.element.css(d.style)}},Styles:{link:"nokia-link",linkVisited:"nokia-link-visited"}})})();